FROM openjdk:8-jdk-alpine
VOLUME /tmp
# 需要修改docker-0.0.1-SNAPSHOT.jar为你的jar 例如 my-project-new-0.0.1-SNAPSHOT.jar 项目名-0.0.1-SNAPSHOT.jar
ADD rabbitmq-server-0.0.1-SNAPSHOT.jar rabbitmq-server.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/rabbitmq-server.jar"]